<?
include("Mobile_Detect.php");
$detect = new Mobile_Detect();
$from = $_REQUEST["from"];
		
if($detect->isMobile() && $from != "mobile"){
	header("Location:http://sagephoto.co.kr/m/index.php"); exit;
}

include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");

$g4['title'] = "";
include_once("$g4[path]/head.main.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");

//print_r2(get_defined_constants());

// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.

$table_width = 1004;
?>

	<div id="sageWrap">

		<!-- 상단비주얼영역 -->
		<div id="visualArea">
			<h1><a href="<?=$domain_www?>"><img src="<?=$domain_www?>/images/common/tit_sagephoto.jpg" alt="s.a.g.e photo" title="" /></a></h1>
			<ul class="lstMainNavi">
				<li><a href="<?=$domain_www?>/bbs/board.php?bo_table=notice"><img src="<?=$domain_www?>/images/common/btn_mainnavi1_off.gif" alt="공지사항" title="공지사항" onmouseover="this.src=this.src.replace('_off','_on');" onmouseout="this.src=this.src.replace('_on','_off');" /></a></li>
				<li><a href="<?=$domain_www?>/product.php"><img src="<?=$domain_www?>/images/common/btn_mainnavi2_off.gif" alt="상품안내" title="상품안내" onmouseover="this.src=this.src.replace('_off','_on');" onmouseout="this.src=this.src.replace('_on','_off');" /></a></li>
				<li><a href="<?=$domain_www?>/bbs/board.php?bo_table=photo"><img src="<?=$domain_www?>/images/common/btn_mainnavi3_off.gif" alt="포토갤러리" title="포토갤러리" onmouseover="this.src=this.src.replace('_off','_on');" onmouseout="this.src=this.src.replace('_on','_off');" /></a></li>
				<li><a href="<?=$domain_www?>/bbs/board.php?bo_table=reservation"><img src="<?=$domain_www?>/images/common/btn_mainnavi4_off.gif" alt="예약견적문의" title="예약견적문의" onmouseover="this.src=this.src.replace('_off','_on');" onmouseout="this.src=this.src.replace('_on','_off');" /></a></li>
				<li><a href="<?=$domain_www?>/bbs/board.php?bo_table=work"><img src="<?=$domain_www?>/images/common/btn_mainnavi5_off.gif" alt="작업현황" title="작업현황" onmouseover="this.src=this.src.replace('_off','_on');" onmouseout="this.src=this.src.replace('_on','_off');" /></a></li>
				<li><a href="<?=$domain_www?>/bbs/board.php?bo_table=freeboard"><img src="<?=$domain_www?>/images/common/btn_mainnavi6_off.gif" alt="자유게시판" title="자유게시판" onmouseover="this.src=this.src.replace('_off','_on');" onmouseout="this.src=this.src.replace('_on','_off');" /></a></li>
			</ul>
			<div class="clearBoth"></div> <!-- Float bug fix for FF -->
			<hr />
		</div>
		<!-- //상단비주얼영역 -->

		<!-- 컨텐츠영역 -->
		<div id="contentsArea">

			<!-- 좌측컨텐츠영역 -->
			<div id="leftArea">

				<!-- 로그인 -->
				<div id="login">					
					<?=outlogin("sagephoto_login"); // 외부 로그인 ?>
				</div>
				<!-- //로그인 -->

				<!-- 예약상담문의 -->
				<div id="reservation" class="space30">
					<h2><img src="<?=$domain_www?>/images/common/tit_reservation.gif" alt="예약상담문의" title="" /></h2>
					<p><strong>박소연</strong><br />010-4058-1622</p>
					<hr />
				</div>
				<!-- //예약상담문의 -->

				<!-- 입금안내 -->
				<div id="account" class="space10">
					<h2><img src="<?=$domain_www?>/images/common/tit_account.gif" alt="입금안내" title="" /></h2>
					<p><span>예금주:</span> 박소연<br />우리은행<br /><span>1002-836-129270</span></p>
					<hr />
				</div>
				<!-- //입금안내 -->

				<!-- 네이버 블로그 -->
				<div id="blog" class="space10">
					<h2><img src="<?=$domain_www?>/images/common/tit_blog.gif" alt="네이버블로그" title="" /></h2>
					<p><a href="http://blog.naver.com/pparadise" target="_blank">blog.naver.com/<br />ppparadise</a></p>
					<hr />
				</div>
				<!-- //네이버 블로그 -->
				
			</div>
			<!-- //좌측컨텐츠영역 -->

			<!-- 메인컨텐츠영역 -->
			<div id="mainArea">
				
				<!-- 메인갤러리 -->
				<div id="mainGallery">
					<h2 class="dpNone">메인 갤러리</h2>
					<div id="flsMainGallery" class="pic">
						<img src="<?=$domain_www?>/images/main/20110317_01.jpg" alt="" title="" />
						<img src="<?=$domain_www?>/images/main/20110317_02.jpg" alt="" title="" />
						<img src="<?=$domain_www?>/images/main/20100419_03.jpg" alt="" title="" />
						<img src="<?=$domain_www?>/images/main/20110317_04.jpg" alt="" title="" />
					</div>
					<script type="text/javascript">$('#flsMainGallery').cycle({ fx:'fade', speed: 3000, delay: -2000});</script>
					<hr />
				</div>
				<!-- //메인갤러리 -->

			</div>
			<!-- //메인컨텐츠영역 -->

			<!-- 우측컨텐츠영역 -->
			<div id="rightArea">
				
				<!-- 자유게시판 -->
				<div id="feeeBoard">
					<h2 class="contTitle space10">자유게시판 <a href="<?=$domain_www?>/bbs/board.php?bo_table=freeboard" class="btnMore"><img src="<?=$domain_www?>/images/main/btn_more.gif" alt="More" title="More" /></a></h2>
						<?=latest("sagephoto_latest", 'freeboard', 5, 30);?>
					<hr />
				</div>
				<!-- //자유게시판 -->

				<!-- 예약견적문의 -->
				<div id="consult">
					<h2 class="contTitle space15">예약 / 견적문의 <a href="<?=$domain_www?>/bbs/board.php?bo_table=reservation" class="btnMore"><img src="<?=$domain_www?>/images/main/btn_more.gif" alt="More" title="More" /></a></h2>
						<?=latest("sagephoto_latest", 'reservation', 5, 30);?>
					<hr />
				</div>
				<!-- //예약견적문의 -->

			</div>
			<!-- //우측컨텐츠영역 -->

			<div class="clearBoth"></div> <!-- Float bug fix for FF -->

			<!-- 갤러리영역 -->
			<div id="galleryArea">
				
				<!-- 갤러리 -->
				<div id="gallery">
					<h2><img src="<?=$domain_www?>/images/main/tit_photogallery.gif" alt="Gallery" title="" /> <a href="<?=$domain_www?>/bbs/board.php?bo_table=photo"><img src="<?=$domain_www?>/images/main/btn_gallerymore.gif" alt="More" title="More" /></a></h2>
					<div id="flsGallery">
						<ul class="lstGallery">
							<?=latest("sagephoto_latest_gallery", 'photo', 6, 30);?>
						</ul>
					</div>
					<hr />
				</div>
				<!-- //갤러리 -->

			</div>
			<!-- //갤러리영역 -->

		</div>
		<!-- //컨텐츠영역 -->

		<!-- 푸터영역 -->
		<div id="footArea">
			
			<div id="mainFooter">
				<h2 class="dpNone">Company Infomation</h2>
				<p>Copyright ⓒ <span class="highlight">sagephoto.co.kr</span>. All Rights Reserved.</p>
				<p>대표:박소연&nbsp;|&nbsp;사업자등록번호:123-34-12046&nbsp;|&nbsp;주소:경기도 군포시 당동 923번지&nbsp;|&nbsp;연락처:010.4058.1622</p>
				<hr />
			</div>

		</div>
		<!-- //푸터영역 -->
	
	</div>

<?
include_once("$g4[path]/tail.sub.php");
?>
